package com.shumei.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.shumei.dao.mapper.RootMapper;
import com.shumei.dao.pojo.Root;
import com.shumei.service.RootService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RootServiceImpl implements RootService {
    @Autowired
    RootMapper rootMapper;
    @Override
    public Root rootlogin(String accountnum, String password) {
        QueryWrapper<Root> wrapper=new QueryWrapper<Root>();
wrapper.eq("accountnum",accountnum).eq("password",password);
        Root root = rootMapper.selectOne(wrapper);
        return root;
    }
}
